package com.book.oauth.server.company.vo;

import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
import com.book.common.util.DatetimeUtil;
import lombok.Data;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Description：公司 Entity
 * @Author： leo
 * @CreateDate： 2020-12-31
 * @Email： leo.xiong@suyun360.com
 * Version: 1.0
 */
@Data
@ExcelTarget("companyVo")
@ApiModel(value = "CompanyVo", discriminator = "公司Vo", subTypes = {CompanyVo.class})
public class CompanyVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键ID")
    private Long id;

    @ApiModelProperty(value = "上级公司ID")
    @Excel(name = "上级公司ID", width = 30, isImportField = "true_st")
    private Long parentId;

    @ApiModelProperty(value = "公司名称")
    @Excel(name = "公司名称", width = 30, isImportField = "true_st")
    private String companyName;

    @ApiModelProperty(value = "排序")
    @Excel(name = "排序", width = 30, isImportField = "true_st")
    private Long orderNum;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建人名称")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date createDate;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新人名称")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date updateDate;

}
